package com.whfc.fuum.dao;


import com.whfc.fuum.dto.SysRuleDTO;
import com.whfc.fuum.entity.SysUserRuleFast;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity generator.domain.SysUserRuleFast
 */
public interface SysUserRuleFastMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUserRuleFast record);

    int insertSelective(SysUserRuleFast record);

    SysUserRuleFast selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserRuleFast record);

    int updateByPrimaryKey(SysUserRuleFast record);

    List<SysRuleDTO> findByUserIdAndDeptId(@Param("userId") Integer userId, @Param("deptId")Integer deptId);

    void insertBatch(@Param("list")List<SysUserRuleFast> list);

    List<SysRuleDTO> findAllByUserIdAndDeptId(@Param("userId")Integer userId, @Param("deptId")Integer deptId);

    List<SysRuleDTO> findByParentIdAndType(@Param("parentId")Integer parentId, @Param("type")Integer type);

    void deleteByUserIdAndDeptId(@Param("userId")Integer userId, @Param("deptId")Integer deptId);
}
